// import request from '@/utils/request'
import http from '@/api/request'
const api = {
  // 根据船员id获取证书列表
  getList(query) {
    return http({
      url: '/tug-api/seaman/cert/list',
      method: 'get',
      params: query
    })
  },
  // 根据Id查询单条
  getDetailById(params) {
    return http({
      url: `/tug-api/seaman/cert/getById`,
      method: 'get',
	  params:params
    })
  },
  // 新建
  save(data) {
    return http({
      url: '/tug-api/seaman/cert/save',
      method: 'post',
      data: data
    })
  },
  //删除
  remove(ids) {
    return http({
      url: `/tug-api/seaman/cert/remove`,
      method: 'post',
      data: ids
    })
  },
}
export default api

